package com.yodawnla.easyPuyo.HUD;

import org.anddev.andengine.engine.camera.hud.HUD;
import org.anddev.andengine.entity.Entity;

import com.yodawnla.lib.YoActivity;
import com.yodawnla.lib.hud.YoHudMgr;

public class Hud
{
	protected String mHudName;
	protected YoHudMgr mHudMgr = YoHudMgr.getInstance();
	protected HUD mHud = YoHudMgr.getInstance().getHud();
	protected YoActivity mBase = YoActivity.getBaseActivity();
	protected Entity mLayer;
	
	public Hud(String hudName, int zIndex)
	{
		mHudName = hudName;
		mLayer = YoHudMgr.getInstance().createHudLayer(hudName, zIndex);
		hide();
	}
	
	public void show()
	{
		mHudMgr.showHudLayer(mHudName);
	}
	
	public void hide()
	{
		mHudMgr.hideHudLayer(mHudName);
	}
}
